
import resso from 'resso'

const AppStore = resso({
    ethShare:false,
    authHash:null
})

export function useAppStore() {

    function updateAppState(obj) {
        console.log('updateAppState:', obj);
        Object.keys(obj).forEach(key => {
            // console.log(key);
            AppStore[key] = obj[key]
        })

    }

    return {appState:AppStore,updateAppState}
}
